<%@ page contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ include file="/common/init.jsp"%>
<link href="<c:url value='/admin/css/custom.css'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/admin/css/style.css'/>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<c:url value='/resources/js/jquery-1.7.2.min.js'/>"></script>
<script type="text/javascript">
$(function(){
	$("#button").click(function(){
		var data = $("#pwdForm").serialize();
		jQuery.ajax({
			url: "updatepwd.action",
			type: "post",
			dataType:"html",
			data:data,
			async:false,
			success: function(jsondata){
				alert(jsondata);
				self.location.href = "${ctx}/admin/userlist.action";
			},
			error: function(XMLHttpRequest, textStatus, errorThrown) {
		    }
		});
	});
});

</script>
<style type="text/css">
<!--
body {
	background: #ffffff;
	margin-top:10px;
	margin-left:5px;
	margin-right:5px;
}
-->
</style>
<body>
<div class="EpmsSubTitle"><p><b>修改会员密码</b></p>
</div>
<form action="updatepwd.action" method="post" id="pwdForm" onsubmit="return false;"> 
<input type="hidden" id="userId" name="userId" value="${user.userId}">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="EpmsTable">
	<tr>
		<td class=EpmsTdTitle><b>会员ID</b></td>
		<td class="EpmsTdNoColor">
			<b>${user.userAccount}</b>
		</td>
	</tr>
	<tr>
		<td class=EpmsTdTitle>一级密码</td>
		<td class="EpmsTdNoColor">
			<input type="password" id="password11" name="password11" value=""/>（为空则不修改密码）
		</td>
	</tr>
	<tr>
		<td class=EpmsTdTitle>二级密码</td>
		<td class="EpmsTdNoColor">
			<input type="password" id="password21" name="password21" value=""/>（为空则不修改密码）
		</td>
	</tr>
	<tr>
		<td class=EpmsTdTitle>三级密码</td>
		<td class="EpmsTdNoColor">
			<input type="password" id="password31" name="password31" value=""/>（为空则不修改密码）
		</td>
	</tr>
	<tr>
		<td colspan="2" align="center">
			<input type="submit" name="button" id="button" value="密码重置" class="inputSubmit" />
		</td>
	</tr>
</table>
</form>
</body>